<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
  <head>
  <title>增加角色</title>
  <%@ include file="/common/meta.jsp"%>     
  <link href="<c:url value='/styles/form.css'/>" type="text/css" rel="stylesheet">
  </head>
  <script>
   function validateForm(){
  	if($("rolePo.roleName").value==""){
  		alert("角色名称不能为空");
  		return false;
  	}
	return true;
  }
  </script>
  <body>
	<div align="center" >
		<div id="detailheader">
			<img src="<%=request.getContextPath()%>/images/main/main_ban01Dot.png" />
			<div>增加角色</div>
		</div>		 
		<html:form action="/role.do?method=save" method="post"  onsubmit="return validateForm()">			
			<div class="formTable" style="width:90%;">
				<div class="formTitle">
					<div class="formTitleL"></div>
					<div class="formTitleM">增加角色信息</div>
					<div class="formTitleR"></div>
				</div>
				<div class="formContent">
							<table width="90%">
								<tr>
									<td align="left">角色名称<font color="red">*</font>:</td>
									<td align="left" nowrap="nowrap">
									<html:text property="rolePo.roleName" />
									</td>
								</tr>
								<tr>
									<td align="left">状态:</td>
									<td align="left">
									<html:select property="rolePo.status" style="width:130px">
										<html:option value="0">正常</html:option>
										<html:option value="1">删除</html:option>
										<html:option value="9">不可更改</html:option>
									</html:select>
									</td>
								</tr>
								<tr>
									<td align="left">备注:</td>
									<td align="left">
									<textarea rows="5" cols="18" name="rolePo.remark"></textarea>
									</td>
								</tr>	
								<tr>
									<td align="center" colspan="2">
										<html:submit styleClass="btn_Xp_Bg0" value="确 定"/>&nbsp;&nbsp;&nbsp;
										<html:reset styleClass="btn_Xp_Bg0" value="重 置"/>
									</td>
								</tr>
							</table>
				</div>
			</div>
		</html:form>
		</div>
	</body>	
</html>
